home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / objam01.lha / objam / objc / Protocol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-11  |  818 b   |  36 lines

  1. /*
  2. ** ObjectiveAmiga: Declare the class Protocol for Objective C programs
  3. ** See GNU:lib/libobjam/ReadMe for details
  4. */
  5.  
  6.  
  7. #ifndef __Protocol_INCLUDE_GNU
  8. #define __Protocol_INCLUDE_GNU
  9.  
  10. #include <objc/Object.h>
  11.  
  12. @interface Protocol : Object
  13. {
  14. @private
  15.         char *protocol_name;
  16.         struct objc_protocol_list *protocol_list;
  17.         struct objc_method_description_list *instance_methods, *class_methods; 
  18. }
  19.  
  20. /* Obtaining attributes intrinsic to the protocol */
  21.  
  22. - (const char *)name;
  23.  
  24. /* Testing protocol conformance */
  25.  
  26. - (BOOL) conformsTo: (Protocol *)aProtocolObject;
  27.  
  28. /* Looking up information specific to a protocol */
  29.  
  30. - (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel;
  31. - (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel;
  32.  
  33. @end
  34.  
  35. #endif __Protocol_INCLUDE_GNU
  36.